import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
import taskManagerRouter from "./module/taskManager"
import systemMonitorControl from "./module/systemMonitorControl";
import calibrationTesting from "./module/calibrationTesting"
import systemMonitoring from "./module/systemMonitoring"
import resourceManagement from "./module/resourceManagement"
import logDisplay from "./module/logDisplay"
import graphManager from "./module/graphManager";
const routes: RouteRecordRaw[] = [
    {
        path: '/',
        redirect: "/task-manage/task-data-manage"
    },
    taskManagerRouter,
    systemMonitoring,
    systemMonitorControl,
    calibrationTesting,
    resourceManagement,
    logDisplay,
    graphManager,
    {
        path: '/:catchAll(.*)',
        name: 'NotFound',
        component: () => import('@/views/404/404Index.vue') // 路由懒加载
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes: routes,
})

export default router